//电池模块[0x01]、红外测距模块[0x02]、陀螺仪[测角度]模块[0x03]、光线传感模块[0x04]、震动马达模块[0x05]、防近视功能[0x06]、启用时间段[0x07]、时间[0x08]、报警记录[0x09]


//获取版本号
const versionOrder = "0111";

//设置系统时间
const setTimeOrder = "0208";

//电量
const electricityOrder = "0101";

//查看测距报警阀值(有设置);
const rangingOrder = "0102";
//近距
const ranging1Order = "02020055";
//中近距
const ranging2Order = "02020045";
//中距
const ranging3Order = "02020035";
//中远距
const ranging4Order = "02020025";
//远距
const ranging5Order = "02020015";


//查看震动模式
const readModelOrder = "0103";
//震动模式一
const model1Order = "02030096";
//震动模式二
const model2Order = "0203012c";
//震动模式三
const model3Order = "02030258";

//查看震动模式一
const getModelOrder1 = "01030096";
//查看震动模式二
const getModelOrder2 = "0103012c";
//查看震动模式三
const getModelOrder3 = "01030258";


//灵敏度设置
//用眼过近灵敏度
const setYyLingMinOrder =  "022400";
//偏头报警灵敏度
const setPtLingMinOrder =  "022300";

//灵敏度读取
//用眼过近灵敏度
const getYyLingMinOrder  = "0124";

const getPtLingMinOrder =  "0123";

//眼镜低头报警未纠正累计时长
const getDtTimeOrder  =    "012a";


//查看角度报警值(有设置)
const angleReadLowOrder = "010301000000000000000000000000000005";//查看低角度报警值
const angleReadOffsetOrder = "010302000000000000000000000000000006";//查看偏角度报警值
const angleReadBackOrder = "010303000000000000000000000000000007";//查看后仰角度报警值



//马达
const motorReadOrder = "01050000";
const motorOpenOrder = "02050001";
const motorCloseOrder = "02050002";

//防近视
const antiMyopiaReadOrder = "010600000000000000000000000000000007";
const antiMyopiaOpenOrder = "010600010000000000000000000000000008";
const antiMyopiaCloseOrder = "010600020000000000000000000000000009";

//查看防近视启用时间段(有增删改查)
const enableTimeReadOrder = "010700000000000000000000000000000008";

//每日使用时间
const dailyTimeOrder = "0121";

//报警记录
const alarmReadOrder = "0109";

//读取系统时间时间
const timeReadOrder = "0108";

//每天作业时间（用眼时长时间）
const studyOrder = "010a";

//步数
const stepOrder = "010c";

//起床时间
const wakeOrder = "010d";

//睡觉时间
const sleepOrder = "010e";

//户外活动时间
const outdoorOrder = "012d";

//偏头报警未纠正累计时长
const ptTimeOrder = "0129";

//低头报警未纠正累计时长
const dtTimeOrder = "012b";


//查看免打扰设置1
const getDisturbOrder1 = "01200001";

//查看免打扰设置2
const getDisturbOrder2 = "01200002";

//设置免打扰设置1
const setDisturbOrder1 = "02200001";

//设置免打扰设置2
const setDisturbOrder2 = "02200002";


//清空数据
const clearOrder = "020f";

module.exports = {
  electricityOrder: electricityOrder,
  rangingOrder: rangingOrder,
  ranging1Order: ranging1Order,
  ranging2Order: ranging2Order,
  ranging3Order: ranging3Order,
  ranging4Order: ranging4Order,
  ranging5Order: ranging5Order,
  angleReadLowOrder: angleReadLowOrder,
  angleReadOffsetOrder: angleReadOffsetOrder,
  angleReadBackOrder: angleReadBackOrder,
  motorReadOrder: motorReadOrder,
  motorOpenOrder: motorOpenOrder,
  motorCloseOrder: motorCloseOrder,
  antiMyopiaReadOrder: antiMyopiaReadOrder,
  antiMyopiaOpenOrder: antiMyopiaOpenOrder,
  antiMyopiaCloseOrder: antiMyopiaCloseOrder,
  enableTimeReadOrder: enableTimeReadOrder,
  timeReadOrder: timeReadOrder,
  alarmReadOrder: alarmReadOrder,
  studyOrder: studyOrder,
  stepOrder: stepOrder,
  wakeOrder: wakeOrder,
  sleepOrder: sleepOrder,
  clearOrder: clearOrder,
  readModelOrder: readModelOrder,
  model1Order: model1Order,
  model2Order: model2Order,
  model3Order: model3Order,
  dailyTimeOrder: dailyTimeOrder,
  versionOrder: versionOrder,
  setTimeOrder: setTimeOrder,
  outdoorOrder: outdoorOrder,
  ptTimeOrder: ptTimeOrder,
  dtTimeOrder: dtTimeOrder,
  getModelOrder1: getModelOrder1,
  getModelOrder2: getModelOrder2,
  getModelOrder3: getModelOrder3,
  setYyLingMinOrder: setYyLingMinOrder,
  setPtLingMinOrder: setPtLingMinOrder, 
  getYyLingMinOrder: getYyLingMinOrder, 
  getPtLingMinOrder: getPtLingMinOrder, 
  getDtTimeOrder: getDtTimeOrder,
  getDisturbOrder1: getDisturbOrder1,
  getDisturbOrder2: getDisturbOrder2,  
  setDisturbOrder1: setDisturbOrder1, 
  setDisturbOrder2: setDisturbOrder2
}